
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module tilestache-server</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>tilestache-server</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a></font></td></tr></table>
    <p><tt>tilestache-server.py&nbsp;will&nbsp;serve&nbsp;your&nbsp;cache.<br>
&nbsp;<br>
This&nbsp;script&nbsp;is&nbsp;intended&nbsp;to&nbsp;be&nbsp;run&nbsp;directly&nbsp;from&nbsp;the&nbsp;command&nbsp;line.<br>
&nbsp;<br>
It&nbsp;is&nbsp;intended&nbsp;for&nbsp;direct&nbsp;use&nbsp;only&nbsp;during&nbsp;development&nbsp;or&nbsp;for&nbsp;debugging&nbsp;TileStache.<br>
&nbsp;<br>
For&nbsp;the&nbsp;proper&nbsp;way&nbsp;to&nbsp;configure&nbsp;TileStach&nbsp;for&nbsp;serving&nbsp;tiles&nbsp;see&nbsp;the&nbsp;docs&nbsp;at:<br>
&nbsp;<br>
<a href="http://tilestache.org/doc/#serving-tiles">http://tilestache.org/doc/#serving-tiles</a><br>
&nbsp;<br>
To&nbsp;use&nbsp;this&nbsp;built-in&nbsp;server,&nbsp;install&nbsp;werkzeug&nbsp;and&nbsp;then&nbsp;run&nbsp;tilestache-server.py:<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;tilestache-server.py<br>
&nbsp;<br>
By&nbsp;default&nbsp;the&nbsp;script&nbsp;looks&nbsp;for&nbsp;a&nbsp;config&nbsp;file&nbsp;named&nbsp;tilestache.cfg&nbsp;in&nbsp;the&nbsp;current&nbsp;directory&nbsp;and&nbsp;then&nbsp;serves&nbsp;tiles&nbsp;on&nbsp;<a href="http://127.0.0.1:8080/">http://127.0.0.1:8080/</a>.&nbsp;<br>
&nbsp;<br>
You&nbsp;can&nbsp;then&nbsp;open&nbsp;your&nbsp;browser&nbsp;and&nbsp;view&nbsp;a&nbsp;url&nbsp;like:<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://localhost:8080/osm/0/0/0.png">http://localhost:8080/osm/0/0/0.png</a><br>
&nbsp;<br>
The&nbsp;above&nbsp;layer&nbsp;of&nbsp;'osm'&nbsp;(defined&nbsp;in&nbsp;the&nbsp;tilestache.cfg)&nbsp;will&nbsp;display&nbsp;an&nbsp;OpenStreetMap<br>
tile&nbsp;proxied&nbsp;from&nbsp;<a href="http://tile.osm.org/0/0/0.png">http://tile.osm.org/0/0/0.png</a><br>
&nbsp;&nbsp;&nbsp;<br>
Check&nbsp;tilestache-server.py&nbsp;--help&nbsp;to&nbsp;change&nbsp;these&nbsp;defaults.</tt></p>

</body></html>